package com.iims.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.project.domain.CmisWorkTokenHelper;
import com.iims.project.vo.resp.WorkTokenHelperResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fanpei
 * @date 2021/7/8 8:55
 */

public interface CmisWorkTokenHelperMapper extends BaseMapper<CmisWorkTokenHelper> {
    /**
     * @param workTokenId 工作令Id
     * @param records     协作人部门集合
     * @return
     */
    int batchInsert(@Param("workTokenId") Long workTokenId, @Param("records") List<CmisWorkTokenHelper> records);

    /**
     * 获取指定工作令协作人
     *
     * @param workTokenId
     * @return
     */
    List<WorkTokenHelperResp> selectWorkTokenHelpers(@Param("workTokenId") Long workTokenId);
}
